package com.example.demo.entity.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 用户和角色
 * </p>
 *
 * @author Mr.Abel
 * @since 2024-03-27
 */
@Getter
@Setter
@TableName("users_and_role")
@ApiModel(value = "UsersAndRole对象", description = "用户和角色")
public class UsersAndRoleVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id",required = true)
    private Integer userId;

    @NotNull(message = "角色id不能为空")
    @ApiModelProperty(value = "角色id",required = true)
    private Integer roleId;
}
